package silvercrux.runtime;

/**
 * Created by SilverCrux on 2016/12/7.
 */

public class Var {

    public String type;
    //public SCCTYPE type;
    public Object value;

    public Var()
    {
        type = null;
        value = null;
    }

    public Var(SCCTYPE scctype,Object value)
    {
        DefType(scctype);
        this.value = value;
    }

    private void DefType(SCCTYPE scctype)
    {
        switch (scctype)
        {
            case INT:
                type = "Integer";
                break;
            case DOUBLE:
                type = "Double";
                break;
            case FLOAT:
                type = "Float";
                break;
            default:
        }
    }
}
